home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src-tk / Smakefile < prev    next >
Encoding:
Makefile  |  1997-06-25  |  2.6 KB  |  102 lines

  1. # Makefile for tk toolkit
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.6
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22.  
  23. # makefile for SAS/C AmiWin port by Victor Ng-Thow-Hing
  24. # altered to also include Amiga port by StefanZ
  25.  
  26.  
  27. ##### MACROS #####
  28.  
  29. INCDIR = /include
  30. LIBDIR = /lib
  31. XDIR = x11:sasc
  32.  
  33. TMP_FILE = T:MesaTMP_SCOPTS
  34.  
  35.  
  36. AMIGASOURCES = awindow.c font.c shapes.c image.c
  37. AMIWINSOURCESS = cursor.c event.c font.c getset.c image.c shapes.c window.c
  38.  
  39. AMIGAOBJECTS = awindow.o font.o shapes.o image.o
  40. AMIWINOBJECTS = cursor.o event.o font.o getset.o image.o shapes.o window.o
  41.  
  42. AMIGASCFLAGS = idir=$(INCDIR) data=far idlen=63 with=/amiga/SCOPTIONS\
  43.           nolink IGN=ALL define=AMIGA 
  44.  
  45. AMIWINSCFLAGS = idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
  46.           nostkchk IGN=ALL math=68882 cpu=68040 optimize define=AMIWIN
  47.  
  48. CC = sc
  49. MAKELIB = oml
  50. TK_LIB = Mesatk.LIB
  51. LIB_NAME = $(LIBDIR)/$(TK_LIB)
  52.  
  53.  
  54. ##### RULES #####
  55.  
  56. .c.o:
  57.     $(CC) WITH=$(TMP_File) $*.c
  58.  
  59. ##### TARGETS #####
  60.  
  61. default:
  62.     @echo "specify: smake <target>"
  63.     @echo "Where <targets> is one of"
  64.     @echo "       amiga   - Compiles a link library (LIB-file)"
  65.     @echo "       library - Compiles a link library (LIB-file)"
  66.     @echo "                 using the shared library (still beta)"
  67.     @echo "       targets - Compilations for AMIWIN"
  68.     smake amiga
  69.  
  70. clean:
  71.     -delete *.o
  72.  
  73. targets: AMIWINLIB
  74.  
  75. amiga: CreateAmigaLIB
  76.  
  77. library: AmigaLIBsh
  78.  
  79. # Make the library
  80. CreateAmigaLIB: AmigaLIB $(AMIGAOBJECTS) DeleteTMP
  81.     $(MAKELIB) $(LIB_NAME) R $(AMIGAOBJECTS)
  82.  
  83. AmigaLIBsh: AmigaLibrary $(AMIGAOBJECTS) DeleteTMP
  84.     $(MAKELIB) $(LIB_NAME) R $(AMIGAOBJECTS)
  85.  
  86. AMIWINLIB: AMIWIN $(AMIWINOBJECTS) DeleteTMP
  87.     $(MAKELIB) $(LIB_NAME) R $(AMIWINOBJECTS)
  88.  
  89. # Makes temporary scoptions to use in global .c.o    
  90. AmigaLIB:
  91.     @echo >$(TMP_FILE) "$(AMIGASCFLAGS) define=AMIGALIB"
  92.  
  93. AmigaLibrary:
  94.     @echo >$(TMP_FILE) "$(LIBRARYSCFLAGS)"
  95.  
  96. AMIWIN:
  97.     @echo >$(TMP_FILE) "$(AMIWINSCFLAGS)"
  98.  
  99. DeleteTMP:
  100.     @delete $(TMP_FILE)
  101.  
  102.